package com.duia.tk.tkflutter;

import android.content.Intent;
import android.os.Bundle;

import io.flutter.app.FlutterActivity;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
//   new MethodChannel(getFlutterView(),"duia.tk").setMethodCallHandler(new MethodChannel.MethodCallHandler() {
//       @Override
//       public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
//           if(methodCall.method.equals("interaction")){
//               Intent intent=new Intent(MainActivity.this,SplashActivity.class);
//               MainActivity.this.startActivity(intent);
//               result.success("success");
//           }else{
//               result.notImplemented();
//           }
//       }
//   });
    GeneratedPluginRegistrant.registerWith(this);
  }
}
